<?php
/**
 * @Author: Ron Chen
 * @Date:   2017-04-23 16:06:19
 * @Last Modified by:   Ron Chen
 * @Last Modified time: 2017-06-11 22:40:56
 */
?>

<div class="container" style="margin-top: 10px;">
	<p class="text-center text-success">保单详情</p>
	<?php if(!$err_info) { ?>
	<h6 class="text-success"><?php echo $data["title"];?></h6>
	<p><small>保单号：</small><strong><?php echo $data["policy_id"];?></strong></p>
	<p><small>生效日期：</small><strong><?php echo $data["effect_date"];?></strong></p>
	<p><small>终止日期：</small><strong><?php echo $data["expire_date"];?></strong></p>
	<p><small>保证额度：</small><strong><?php echo "--";?></strong></p>
	<p><small>支付金额：</small><strong><?php echo $data["premium_total"];?>元</strong></p>

	<h6 class="text-success" style="margin-top: 25px;">被保险人信息</h6>
	<?php if(is_array($data["policy_insuce"]) && count($data["policy_insuce"]) >0 ) {?>
		<?php foreach($data["policy_insuce"] as $item){ ?>
			<p><small>姓名：</small><strong><?php echo $item["insuce_name"];?></strong></p>
			<p><small>证件类型：</small><strong><?php echo $item["insuce_type"];?></strong></p>
			<p><small>证件号：</small><strong><?php echo $item["insuce_number"];?></strong></p>
		<?php } ?>
	<?php } ?>
	<h6 class="text-success" style="margin-top: 25px;">投保人（联系人）信息</h6>
	<p><small>姓名：</small><strong><?php echo $data["holder_name"];?></strong></p>
	<p><small>手机号：</small><strong><?php echo $data["holder_phone"];?></strong></p>
	<p><small>邮箱：</small><strong><?php echo $data["holder_email"];?></strong></p>
	<?php } else { ?>
		<p class="text-muted">保单暂未生成</p>
	<?php } ?>
</div>


<nav class="navbar navbar-default navbar-fixed-bottom" style="padding: 5px 0px;">
    <div class="navbar-inner navbar-content-center">
    	<div class="row">
        	<div class="col-xs-12">
        	<?php if(!$err_info) { ?>
              <a class="btn btn-block btn-success" data-toggle="modal" href="/index/detail?id=<?php echo $data["plan_code"];?>">再次购买</a>
             <?php }else{ ?>
              <a class="btn btn-block btn-success" data-toggle="modal" href="/user/my-order">返回</a>
             <?php } ?>
            </div>
        </div>
    </div>
</nav>

